<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('电话紧急联系调整-列表')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="post-form">
                <div class="select-list">
                    <ul>
                        <li>
                            来电号码：<input type="text" name="fromTelA"/>
                        </li>
                        <li>
                            流水号：<input type="text" name="wsCode"/>
                        </li>
                        <li>
                            工单编号：<input type="text" name="workFormNO"/>
                        </li>
                        <li>
                            来电人：<input type="text" name="fromName"/>
                        </li>
                        <li>
                            内容类别：<input type="text" name="dcntAName"/>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                    class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                    class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="btn-group-sm " id="toolbar" role="group">
            <a class="btn btn-success multiple disabled" onclick="$.operate.handleTab()"
               shiro:hasPermission="mTelRcd:process:view">
                <i class="fa fa-plus"></i> 编辑
            </a>
        </div>

        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "system/mTelWF";

    $(function () {
        var options = {
            url: prefix + "/rManage/twmBankNameListJson",
            updateUrl:  prefix+"/rManage/tWBankName/{id}",
            uniqueId: "pkId",
            modalName: "电话紧急联系调整",
            fixedColumns: true,
            fixedNumber: 1,
            fixedRightNumber: 1,
            columns: [{
                checkbox: true
            },
                {field:'WorkFormNO',title:'工单编号',align:'left',halign:'center',sortable:true},
                {field:'SetProID',title:'性质',align:'center',formatter:function(value,row,index){return fmtWFormSort(value,row,index);}},
                {field:'WsTopic',title:'主题',align:'left',halign:'center',sortable:true},
                {field:'FmAreaName',title:'属地',align:'left',halign:'center',sortable:true},
                {field:'FromName',title:'来电人',align:'center',sortable:true},
                {field:'FromTelA',title:'来电号码',align:'center',sortable:true},
                {field:'DFmClaName',title:'诉求类别',align:'center',sortable:true},
                {field:'fmTime',title:'创建时间',align:'center'},
                {field:'OpenFrom',title:'同意公开',align:'center',sortable:true,formatter:function(value,row,index){return fmtWFormOpen(value,row,index);}},
                {field:'Openx',title:'建议公开',align:'center',sortable:true,formatter:function(value,row,index){return fmtWFormOpen(value,row,index);}},
                {field:'WfLimit',title:'办理时限',align:'center',sortable:true},
                {field:'CrtStepName',title:'当前环节',align:'center'},
                {field:'Mark',title:'是否紧急',align:'left',halign:'center',formatter:function(value,row,index){
                        var mark=row.Mark;
                        var rtn="否"
                        if(mark=="1"){
                            rtn="<span style='color:red;'>是</span>"
                        }
                        return rtn;
                    }},
                {
                    title: '操作',
                    align: 'center',
                    formatter: function (value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="$.operate.handleTab(\'' + row.PkId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        return actions.join('');
                    }
                }]
        };
        $.table.init(options);
    });

</script>
</body>
</html>